<link href="http://www.weekus.com/backend/assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="http://www.weekus.com/backend/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="http://www.weekus.com/backend/assets/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN PAGE LEVEL STYLES -->
	<link rel="stylesheet" type="text/css" href="http://www.weekus.com/backend/assets/plugins/bootstrap-datetimepicker/css/datetimepicker.css"/>
	<link rel="stylesheet" type="text/css" href="http://www.weekus.com/backend/assets/plugins/bootstrap-switch/css/bootstrap-switch.min.css"/>
<!-- END PAGE LEVEL SCRIPTS -->
<!-- BEGIN THEME STYLES -->
<link href="http://www.weekus.com/backend/assets/css/style-metronic.css" rel="stylesheet" type="text/css"/>
<link href="http://www.weekus.com/backend/assets/css/style.css" rel="stylesheet" type="text/css"/>
<link href="http://www.weekus.com/backend/assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
<link href="http://www.weekus.com/backend/assets/css/plugins.css" rel="stylesheet" type="text/css"/>
<link href="http://www.weekus.com/backend/assets/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color"/>
<link href="http://www.weekus.com/backend/assets/css/custom.css" rel="stylesheet" type="text/css"/>

<link rel="stylesheet" type="text/css" href="../editor/css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="../editor/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../editor/css/froala_editor.css">
<link rel="stylesheet" type="text/css" href="../editor/css/froala_editor.min.css">
<link rel="stylesheet" type="text/css" href="../editor/css/froala_page.css">
<link rel="stylesheet" type="text/css" href="../editor/css/froala_page.min.css">
<link rel="stylesheet" type="text/css" href="../editor/css/themes/dark.css">
<link rel="stylesheet" type="text/css" href="../editor/css/themes/dark.min.css">
<link rel="stylesheet" type="text/css" href="../editor/css/themes/gray.css">
<link rel="stylesheet" type="text/css" href="../editor/css/themes/gray.min.css">
<link rel="stylesheet" type="text/css" href="../editor/css/themes/red.css">
<link rel="stylesheet" type="text/css" href="../editor/css/themes/red.min.css">
<link rel="stylesheet" type="text/css" href="../editor/css/themes/royal.css">
<link rel="stylesheet" type="text/css" href="../editor/css/themes/royal.min.css">
<script src="http://www.weekus.com/backend/assets/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="http://www.weekus.com/backend/assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>

<!-- END THEME STYLES -->
<link rel="shortcut icon" href="http://www.weekus.com/favicon2.ico"/>
<style>
body{background:#fff !important;}
.form-group{overflow:hidden;}
</style>

<?

include("../config/config.php");

$nameid=$_GET['name'];
//$one=$_GET['one'];

$resu=mysqli_query($mysqli,"select * from z_rcmd_article  where  id='$nameid'");

while($rr=mysqli_fetch_array($resu)){
    $id=$rr[id];
	$enable=$rr[enable];
	$confirm=$rr[confirm];
	$auto_publish_timing=$rr[auto_publish_timing];
	$oid=$rr[oid];
	$title=$rr[title];
	$image=$rr[image];
	$type=$rr[type];
	$author=$rr[author];
	$source=$rr[source];
	$source_url=$rr[source_url];
	$content=$rr[content];
	$likes=$rr[likes];
	$views=$rr[views];
	$comments=$rr[comments];
	$published_at=$rr[published_at];
}


?>
<div class="portlet">
  <form  action="updata_up.php" method="post">
			<div class="portlet-title">
				<div class="caption">
					<i class="fa fa-car"></i> 购车指南
				</div>
				<div class="actions btn-set" style="height:40px;">
					
					<button type="submit" style="position:fixed;top:65px;right:65px;width:100px;height:40px;
					background:#b95a3b;color:#fff;font-size:20px;z-index:99;" ><i class="fa fa-check"></i> 保存</button>
				</div>
			</div>
			<div class="portlet-body">
				<div class="form-body">
					<div class="form-group">
						<label class="col-md-2 control-label">文章id:
						</label>
						<div class="col-md-10">
						<input type="int"  readonly="readonly" name="id" value="<? echo $id ?>">
						</div>
					</div><br>
					<div class="form-group">
						<label class="col-md-2 control-label">初审:
						</label>
						<div class="col-md-10">
						<input type="int" name="enable" value="<? echo $enable ?>"><span>说明：填1代表通过初审，0代表初审</span> 
						</div>
					</div><br>
					
					<div class="form-group">
						<label class="col-md-2 control-label">签发:
						</label>
						<div class="col-md-10">
						<input type="int" name="confirm" value="<? echo $confirm ?>"><span>说明：填1代表已经签发，0代表未签发</span> 
						</div>
					</div><br>

					<div class="form-group">
						<label class="col-md-2 control-label">定时发布日期:
						</label>
						<div class="col-md-10">
								<div class="input-group input-medium date date-picker">
									<input  class="form-control" name="published_at" value="<?php echo $published_at ?>" type="text"><span>说明：输入格式2017-12-25 11:11</span> 
									
									
								</div>
						</div>
					</div><br>
					
					

					<div class="form-group ">
						<label class="col-md-2 control-label">标题:
						<span class="required">
							 *
						</span>
						</label>
						<div class="col-md-10">
							<input id="title" class="form-control" maxlength="200" name="title" value="<?php echo $title ?>" type="text">
							<span for="title" class="help-block"></span>
						</div>
					</div><br>
	<div class="form-group ">
						<label class="col-md-2 control-label">图片:
						<span class="required">
							 *
						</span>
						</label>
						<div class="col-md-10">
						
							<input  name="image" value="<? echo $image ?>" class="form-control">
						
						
						</div>
					</div><br>


					<div class="form-group">
						<label class="col-md-2 control-label">编辑者:
						</label>
						<div class="col-md-10">
							<input id="author" class="form-control" maxlength="50" name="author" value="<? echo $author ?>" type="text">
						</div>
					</div><br>

					<div class="form-group">
						<label class="col-md-2 control-label">类型:
						</label>
						<div class="col-md-10">
							<input id="type" class="form-control" maxlength="50" name="type" value="<? echo $type ?>" type="text">
							<div class="tips">填写: 原创 OR 转载</div>
						</div>
					</div><br>

					<div class="form-group">
						<label class="col-md-2 control-label">来源:
						</label>
						<div class="col-md-10">
							<input id="source" class="form-control" maxlength="50" name="source" value="<? echo $source ?>" type="text">
						</div>
					</div><br>

					<div class="form-group">
						<label class="col-md-2 control-label">来源网址:
						</label>
						<div class="col-md-10">
							<input id="source_url" class="form-control" maxlength="500" name="source_url" value="<? echo $source_url ?>" type="text">
							<div class="tips">http://www.demo.com</div>
						</div>
					</div><br>
					
					<div class="form-group">
						<label class="col-md-2 control-label">喜欢数:
						</label>
						<div class="col-md-10">
							<input id="likes" class="form-control" maxlength="8" name="likes" value="<? echo $likes ?>" type="text">
						</div>
					</div><br>

					<div class="form-group">
						<label class="col-md-2 control-label">浏览数:
						</label>
						<div class="col-md-10">
							<input id="views" class="form-control" maxlength="8" name="views" value="<? echo $views ?>" type="text">
						</div>
					</div><br>

					<div class="form-group">
						<label class="col-md-2 control-label">评论数:
						</label>
						<div class="col-md-10">
							<input id="comments" class="form-control" maxlength="8" name="comments" value="<? echo $comments ?>" type="text">
						</div>
					</div><br>
					<div class="form-group">
						<label class="col-md-2 control-label">内容:
						<span class="required">
							 *
						</span>
						</label>
						<div class="col-md-10">
		<textarea class="form-control" rows="10"  id="edit" class="editor" name="content" cols="50" id="content"  aria-hidden="true">
        <?php echo $content ?>
    </textarea>
						</div>
					</div><br>

				

				</div>
			</div>

			</form>
		</div>


<script>
$(function() {
    $('.editor').editable({
        inlineMode: false,
        theme: 'gray',
        //模版
        height: '200px' //高度
    });
 
})
</script>
<script src="../editor/js/libs/jquery-1.11.1.min.js"></script> 
<script src="../editor/js/froala_editor.min.js"></script> 
<!--[if lt IE 9]>
    <script src="../js/froala_editor_ie8.min.js"></script>
<![endif]--> 
<script src="../editor/js/plugins/tables.min.js"></script> 
<script src="../editor/js/plugins/lists.min.js"></script> 
<script src="../editor/js/plugins/colors.min.js"></script> 
<script src="../editor/js/plugins/media_manager.min.js"></script> 
<script src="../editor/js/plugins/font_family.min.js"></script> 
<script src="../editor/js/plugins/font_size.min.js"></script> 
<script src="../editor/js/plugins/block_styles.min.js"></script> 
<script src="../editor/js/plugins/video.min.js"></script> 
<script src="../editor/js/langs/zh_cn.js"></script>
    <script>
        $(function () {
            $('#edit').editable({
                inlineMode: false,
                alwaysBlank: true,
                language: "zh_cn",
                direction: "ltr",
                allowedImageTypes: ["jpeg", "jpg", "png", "gif"],
                autosave: true,
                autosaveInterval: 2500,
                saveURL: '../editor/img.php',
                saveParams: { postId: "123" },
                spellcheck: true,
                plainPaste: true,
                imageButtons: ["floatImageLeft", "floatImageNone", "floatImageRight", "linkImage", "replaceImage", "removeImage"],
                imageUploadURL: '../editor/img.php',
                imageParams: { postId: "123" },
                enableScript: false
 
            })
        });
    </script>